package cn.kpi.service.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kpi.entity.sys.RoleEntity;
import cn.kpi.entity.sys.RoleMenuEntity;
import cn.kpi.entity.sys.RoleOrgEntity;
import cn.kpi.entity.sys.RoleUserEntity;

public interface IRightsService {
	public List<RoleEntity> GetRoleList(String where)throws Exception;
	public List<RoleEntity> GetRoleListLimit(String where,int beginrow,int endrow)throws Exception;
	public int GetRoleListLimitCount(String where)throws Exception;
	
	public List<RoleUserEntity> GetRoleUserList(String where,Long roleid)throws Exception;
	public int InsertRoleUser(List<Long> list,Long roleid)throws Exception;
	
	public List<RoleMenuEntity> GetRoleMenuList(Long roleid)throws Exception;
	public int InsertRoleMenu(List<Long> list,Long roleid)throws Exception;
	
	public List<RoleOrgEntity> GetRoleOrgList(Long roleid)throws Exception;
	public int InsertRoleOrg(List<Long> list,Long roleid)throws Exception;
	
	public int DeleteRoleUserByUserid(Long roleid,Long userid)throws Exception;
}
